/**
 * Copyright (C) 2015 Sankuai, Inc. All Rights Reserved.
 */
package com.lpc.framework.base.vo;

/**
 * @author jiangjinlong
 *
 */
public class FileCallBack {

    private Integer statusCode;

    private String message;

    private String filename;
    
    public static FileCallBack newInstance() {
        return new FileCallBack();
    }

    public FileCallBack success() {
        this.statusCode = 200;
        return this;
    }

    public FileCallBack error() {
        this.statusCode = 300;
        return this;
    }

    public FileCallBack timeout() {
        this.statusCode = 301;
        return this;
    }

    public FileCallBack message(String message) {
        this.message = message;
        return this;
    }

    public FileCallBack filename(String filename) {
        this.filename = filename;
        return this;
    }

    /**
     * @return the statusCode
     */
    public Integer getStatusCode() {
        return statusCode;
    }

    /**
     * @param statusCode the statusCode to set
     */
    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the filename
     */
    public String getFilename() {
        return filename;
    }

    /**
     * @param filename the filename to set
     */
    public void setFilename(String filename) {
        this.filename = filename;
    }

}
